package com.example.demo.configuration;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@Configuration//设置为配置类
@ComponentScan({"com.example.demo.filter","com.example.demo.configuration"})//启动时会扫描的配置类,配置类是优先的,这个被@SpringBootApplication替代了
//@EnableWebMvc//启动时应该会被设置为主配置类???//应该是开启过滤器,要注释掉,不然会冲突
public class SpringMvcConfig {
}
